package cn.edu.scau.cmi.huxiantao.abstractFactory.factory;

import cn.edu.scau.cmi.huxiantao.abstractFactory.domainAbstractClass.Insurance;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		AbstractFactory factory=null;
		if(brand.equals("PICC")) {
			factory=new PICCFactory();
		}else if(brand.equals("PingAn")) {
			factory=new PingAnFactory();
		}
		return factory;
	}
	
	public abstract Insurance getBodyInjury();
	public abstract Insurance getCarInjury();
	public abstract Insurance getManInjury();
	public abstract Insurance getMultInjury();
	
}
